KYIV, Ukraine (AP) — U.K. Prime Minister Keir Starmer signed a 100-year partnership agreement with Ukrainian President Volodymyr Zelenskyy on Thursday, part of a European show of support and promises to keep helping Ukraine endure in its nearly three-year war with Russia.

The announcement came days before Donald Trump is sworn in as U.S. president with what he says is a plan to end Europe's biggest conflict since World War II.

"We are with you not just today or tomorrow, for this year or the next, but for 100 years long after this terrible war is over and Ukraine is free and thriving once again," Starmer told Zelenskyy, promising that the U.K. would "play our part" in guaranteeing Ukraine's post-war security.

Starmer said that the landmark century-long agreement commits the two sides to cooperate on defense — especially maritime security against Russian activity in the Baltic Sea, Black Sea and Sea of Azov — and on technology projects including drones, which have become vital weapons for both sides in the war. The treaty also includes a system to help track stolen Ukrainian grain exported by Russia from occupied parts of the country.

Ukraine's alignment with the West, and potential future membership in NATO, have angered Russian President Vladimir Putin, who still wants to exert influence over the independent nation.

While Starmer was meeting with Zelenskyy at the presidential palace, debris from Russian drones shot down by Ukraine’s air defenses fell in at least four districts of Kyiv, according to city administration chief Tymur Tkachenko.

Starmer said that the drones were “a reminder” of what the Ukrainian people are up against and their resolve.

Starmer’s unannounced visit is his first trip to Ukraine since he took office in July, though he said that it was his seventh meeting with Zelenskyy.

The Italian defense chief was also in Kyiv on Thursday, two days after Germany's defense minister visited and three days after Zelenskyy talked by phone with French President Emmanuel Macron.

The flurry of diplomatic activity came in the days leading up to Trump's inauguration on Monday, which is expected to bring a departure from the outgoing U.S. administration's pledge to stand with Ukraine for as long as it takes to defeat Russia. Trump has also indicated that he wants Europe to shoulder more of the burden for helping Ukraine.

Kyiv's allies have rushed to flood Ukraine with as much support as possible before Trump's inauguration, with the aim of putting Ukraine in the strongest position possible for any future negotiations to end the full-scale invasion, which began on Feb. 24, 2022.

Ukrainians worry that Trump’s plan will demand concessions that are unpalatable for Ukraine, such as giving up territory. Zelenskyy has also said that he wants security guarantees to deter Russia from invading again in the future.

“We must look at how this war could end, the practical ways to get a just and lasting peace … that guarantees your security, your independence and your right to choose your own future,” Starmer said at a joint news conference.

Zelenskyy said that the two leaders had discussed an idea floated by Macron for Western peacekeepers to monitor a future ceasefire, but said that it’s “a bit too early to talk about details.”

Starmer left the door open to U.K. participation, telling Ukraine's leader that “we will work with you and all of our allies on steps that would be robust enough to guarantee Ukraine’s security.”

“Those conversations will continue for many months ahead,” Starmer said.

Zelenskyy has previously discussed a potential peacekeeping force with Baltic countries, France and Poland. But he said that it could only be part of the security solution and noted that “we do not consider security guarantees without the United States.”

Starmer agreed that Washington's role in Ukraine is “vital.” The United States is the biggest provider of military support and advanced weaponry to the country.

“We will continue to work with the U.S. on this,” Starmer said.

Starmer said that in 2025, the U.K. will give Ukraine “more military support than ever before.” He said that his country has already committed 3 billion pounds ($3.6 billion) for military aid this year and will provide a 2.2 billion pound (nearly $2.7 billion) loan to be paid back from the interest on Russian assets frozen by sanctions.

Britain is also providing 150 more artillery barrels and a U.K.-designed mobile air defense system named Gravehawk. The U.K. has pledged 12.8 billion pounds ($15.6 billion) in military and civilian aid since the war broke out.

During the daylong visit, Starmer and Zelenskyy laid flowers at a wall of remembrance for those killed in the war. The wall outside St. Michael’s Golden-Domed Monastery, a Kyiv landmark, is covered in photos of the slain, stretching for a city block. It has become a place of pilgrimage for families paying tribute to their lost loved ones.

Starmer also visited a Kyiv hospital specializing in burn treatment and an exhibition of drone technology.

As the grinding war nears the three-year mark, both Russia and Ukraine are pushing for battlefield gains before possible peace talks. Ukraine has started a second offensive in Russia’s Kursk region, where it is struggling to hang onto a chunk of territory it captured last year, and has stepped up drone and missile attacks on weapons sites and fuel depots inside Russia.

Moscow is slowly taking territory at the cost of high casualties along the 600-mile (1,000-kilometer) front line in eastern Ukraine and launching intense barrages at Ukraine's energy system, seeking to deprive Ukrainians of heat and light in the depths of winter. A major Russian ballistic and cruise missile attack on regions across Ukraine on Wednesday compelled authorities to shut down the power grid in some areas.

___

Follow AP's coverage of the war in Ukraine at https://apnews.com/hub/russia-ukraine

British Prime Minister Keir Starmer, left and Ukrainian President Volodymyr Zelenskyy shake hands, at the start of their bilateral talks at Mariinskyi Palace, in Kyiv, Ukraine Thursday, Jan. 16, 2025. (Carl Court/Pool Photo via AP)

Credit: AP

icon to expand image

Credit: AP

British Prime Minister Keir Starmer, center right and Ukrainian President Volodymyr Zelenskyy arrive for their bilateral talks aat Mariinskyi Palace, in Kyiv, Ukraine Thursday, Jan. 16, 2025. (Carl Court/Pool Photo via AP)

Credit: AP

icon to expand image

Credit: AP

British Prime Minister Keir Starmer and Ukrainian President Volodymyr Zelenskyy arrive to lay wreaths at The Wall of Remembrance of the Fallen for Ukraine in Kyiv, Ukraine Thursday, Jan. 16, 2025. (Carl Court/Pool Photo via AP)

Credit: AP

icon to expand image

Credit: AP

British Prime Minister Keir Starmer, left, is greeted by Ukrainian officials and the British ambassador to Ukraine Martin Harris, second right, as he arrives at a train station in Kyiv, Ukraine Thursday, Jan. 16, 2025. (Carl Court/Pool Photo via AP)

Credit: AP

icon to expand image

Credit: AP

British Prime Minister Keir Starmer, center, arrives at a train station in Kyiv, Ukraine Thursday, Jan. 16, 2025. (Carl Court/Pool Photo via AP)

Credit: AP

icon to expand image

Credit: AP

British Prime Minister Keir Starmer, center, is greeted by Ukrainian officials and the British ambassador to Ukraine Martin Harris, front right, as he arrives at a train station in Kyiv, Ukraine Thursday, Jan. 16, 2025. (Carl Court/Pool Photo via AP)

Credit: AP

icon to expand image

Credit: AP

British Prime Minister Keir Starmer is briefed by his military assistant on a train bound for Kyiv Thursday, Jan. 16, 2025 in Ukraine. (Carl Court/Pool Photo via AP)

Credit: AP

icon to expand image

Credit: AP

British Prime Minister Keir Starmer, left, is greeted by Ukrainian officials and the British ambassador to Ukraine Martin Harris, right, as he arrives at a train station in Kyiv, Ukraine Thursday, Jan. 16, 2025. (Carl Court/Pool Photo via AP)

Credit: AP

icon to expand image

Credit: AP

British Prime Minister Keir Starmer, right, is briefed by his unidentified military assistant on a train bound for Kyiv Thursday, Jan. 16, 2025 in Ukraine. (Carl Court/Pool Photo via AP)

Credit: AP

icon to expand image

Credit: AP

Britain's Prime Minister Keir Starmer poses for photos with staff members during a visit to a hospital, in Kyiv, Ukraine Thursday, Jan. 16, 2025. (Carl Court/Pool Photo via AP)

Credit: AP

icon to expand image

Credit: AP

British Prime Minister Keir Starmer visits a hospital as a staff member meets with an injured patient, a Ukrainian service member, in Kyiv, Ukraine Thursday, Jan. 16, 2025. (Carl Court/Pool Photo via AP)

Credit: AP

icon to expand image

Credit: AP

British Prime Minister Keir Starmer arrives with Ukrainian President Volodymyr Zelenskyy to lay wreaths at The Wall of Remembrance of the Fallen for Ukraine, in Kyiv, Ukraine Thursday, Jan. 16, 2025. (Carl Court/Pool Photo via AP)

Credit: AP

icon to expand image

Credit: AP

British Prime Minister Keir Starmer and Ukrainian President Volodymyr Zelenskyy lay wreaths at The Wall of Remembrance of the Fallen for Ukraine, in Kyiv, Ukraine Thursday, Jan. 16, 2025. (Carl Court/Pool Photo via AP)

Credit: AP

icon to expand image

Credit: AP

British Prime Minister Keir Starmer and Ukrainian President Volodymyr Zelenskyy arrive to lay wreaths at The Wall of Remembrance of the Fallen for Ukraine, in Kyiv, Ukraine Thursday, Jan. 16, 2025. (Carl Court/Pool Photo via AP)

Credit: AP

icon to expand image

Credit: AP

British Prime Minister Keir Starmer arrives with Ukrainian President Volodymyr Zelenskyy to lay wreaths at The Wall of Remembrance of the Fallen for Ukraine, in Kyiv, Ukraine Thursday, Jan. 16, 2025. (Carl Court/Pool Photo via AP)

Credit: AP

icon to expand image

Credit: AP

British Prime Minister Keir Starmer is guided by Ukrainian officials as he inspects a damaged vehicle along a street, in Kyiv, Ukraine Thursday, Jan. 16, 2025. (Carl Court/Pool Photo via AP)

Credit: AP

icon to expand image

Credit: AP

Britain's Prime Minister Keir Starmer visits a hospital as a staff member meets with an injured patient, in Kyiv, Ukraine Thursday, Jan. 16, 2025. (Carl Court/Pool Photo via AP)

Credit: AP

icon to expand image

Credit: AP

British Prime Minister Keir Starmer and Ukrainian President Volodymyr Zelenskyy lay wreaths at The Wall of Remembrance of the Fallen for Ukraine, in Kyiv, Ukraine Thursday, Jan. 16, 2025. (Carl Court/Pool Photo via AP)

Credit: AP

icon to expand image

Credit: AP

British Prime Minister Keir Starmer and Ukrainian President Volodymyr Zelenskyy arrive to lay wreaths at The Wall of Remembrance of the Fallen for Ukraine, in Kyiv, Ukraine Thursday, Jan. 16, 2025. (Carl Court/Pool Photo via AP)

Credit: AP

icon to expand image

Credit: AP

British Prime Minister Keir Starmer, left and Ukrainian President Volodymyr Zelenskyy hold a signing ceremony to commemorate a 100-year partnership between the countries at Mariinskyi Palace, in Kyiv, Ukraine Thursday, Jan. 16, 2025. (Carl Court/Pool Photo via AP)

Credit: AP

icon to expand image

Credit: AP

In this photo, taken from video and released by the Russian Defense Ministry Press Service on Thursday, Jan. 16, 2025, a Russian "Grad" self-propelled multiple rocket launcher fires towards Ukrainian positions in Kursk region of Russia. (Russian Defense Ministry Press Service via AP)

Credit: AP

icon to expand image

Credit: AP

In this photo, taken from video and released by the Russian Defense Ministry Press Service on Thursday, Jan. 16, 2025, a Russian "Grad" self-propelled multiple rocket launcher fires towards Ukrainian positions as a soldier gets ready to shoot drones in Ukraine. (Russian Defense Ministry Press Service via AP)

Credit: AP

icon to expand image

Credit: AP

In this photo, taken from video and released by the Russian Defense Ministry Press Service on Thursday, Jan. 16, 2025, a Russian soldier tries to shoot a Ukrainian drone on an undisclosed location in Ukraine. (Russian Defense Ministry Press Service via AP)

Credit: AP

icon to expand image

Credit: AP

British Prime Minister Keir Starmer and President Volodymyr Zelensky, right, speak ahead of their bilateral talks at Mariinskyi Palace in Kyiv, Ukraine, Thursday, Jan. 16, 2025. (Carl Court, Pool Photo via AP)

Credit: AP

icon to expand image

Credit: AP

British Prime Minister Keir Starmer, center, and Ukrainian President Volodymyr Zelenskyy, second right, attend a presentation of Ukrainian military drones at an undisclosed location in Kyiv, Ukraine, Thursday, Jan. 16, 2025. (Carl Court, Pool Photo via AP)

Credit: AP

icon to expand image

Credit: AP

British Prime Minister Keir Starmer waves as he sits with school children as they communicate over video link with a British primary school in Kyiv, Ukraine, Thursday, Jan. 16, 2025 (Carl Court, Pool Photo via AP)

Credit: AP

icon to expand image

Credit: AP

British Prime Minister Keir Starmer, 3rd left, and Ukrainian President Volodymyr Zelenskyy, 2nd left, attend a presentation of Ukrainian military drones at an undisclosed location in Kyiv, Ukraine, Thursday, Jan. 16, 2025. (Carl Court, Pool Photo via AP)

Credit: AP

icon to expand image

Credit: AP

British Prime Minister Keir Starmer, left and Ukrainian President Volodymyr Zelenskyy hug, at the start of their bilateral talks at Mariinskyi Palace, in Kyiv, Ukraine Thursday, Jan. 16, 2025. (Carl Court/Pool Photo via AP)

Credit: AP

icon to expand image

Credit: AP